const p1 = new Promise((resolve, reject) => {
    // 调整状态
    resolve('ok')
    reject('error')
})
console.log(p1)//Promise { 'ok' }
console.log(p1.then())//Promise { <pending> }